package com.gkzf.ai.module.crm.controller.admin.creditReport.vo.creditreport;

import com.gkzf.ai.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.gkzf.ai.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - CRM 征信报告分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CreditReportPageReqVO extends PageParam {

    @Schema(description = "名称", example = "张三")
    private String name;
    /**
     * 征信报告基础表id
     */
    @Schema(description = "征信报告基础表id", example = "1")
    private Long creditBasicId;

    @Schema(description = "名称对应value")
    private String value;

    @Schema(description = "0：正在解析 1：解析完成", example = "1")
    private Boolean status;

    @Schema(description = "上级Id", example = "20015")
    private Long parentId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}